package com.elink.enginerring.service;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.elink.enginerring.co.BaseCo;
import com.elink.enginerring.co.ThesisCo;
import com.elink.enginerring.domain.Thesis;

public interface ThesisService {
	Map<String, Object> getFilesList(ThesisCo co);

	Map<String, Object> add(Thesis thesis);

	Map<String, Object> update(Thesis thesis, String userId);

	Map<String, Object> getInfo(String thesisId, String userId);

	Map<String, Object> getDownLoadRank(int count);

	Map<String, Object> getRelevant(String thesisId, int count);

	Map<String, Object> getLike(String thesisId, int count);

	Map<String, Object> getKeyWord(int count);

	Map<String, Object> getRelevantType(String thesisId, int count);

	Map<String, Object> download(HttpServletResponse response,
			HttpServletRequest request, String userId, String thesisId)
			throws IOException;

	Map<String, Object> getUploadByUserId(BaseCo co, String userId,String keyWord);

	Map<String, Object> getDownLoadByUserId(BaseCo co, String userId,String keyWord);

	Map<String, Object> getThesisList(int scId);

	Map<String, Object> getThesisBest(int count);

	Map<String, Object> getShare(String thesisId, String userId);
}
